package com.rlz.framemm.ui

import com.rlz.base.base.BaseActivity
import com.rlz.base.base.EmptyModel
import com.rlz.base.base.EmptyViewModel
import com.rlz.base.util.StatusBarHelper
import com.rlz.framemm.R
import com.rlz.framemm.databinding.ActivityBehaviorBinding
import com.rlz.framemm.ui.adapter.BehaviorAdapter

/**
 * Created by RLZ
 * on 2021/11/10
 *
 */
class BehaviorActivity : BaseActivity<EmptyModel, EmptyViewModel, ActivityBehaviorBinding>() {

    private var mList = arrayListOf<String>()

    override fun logic() {
        for (i in 1..30) {
            mList.add("我是第${i}个条目")
        }
        val behaviorAdapter = BehaviorAdapter()
        behaviorAdapter.addData(mList)
        mBinding.recycler.adapter = behaviorAdapter
        StatusBarHelper.setGradientColor(this,mBinding.tv)
    }

    override fun layoutId(): Int {
        return R.layout.activity_behavior
    }
}